package thread;

import model.ChessAction;
import model.ChessBoard;

/**
 * 人类线程，挂载鼠标点击事件.
 *
 * @author 任禹名
 */
public class HumanThread extends Thread {
    private ChessAction chessAction;
    private ChessBoard chessBoard;

    public HumanThread(ChessAction chessAction, ChessBoard chessBoard) {
        this.chessAction = chessAction;
        this.chessBoard = chessBoard;
    }

    public void run() {
        chessBoard.addMouseListener(chessBoard.new MouseHandler());
    }

}
